//
//  FriendRequest.h
//  极致荟
//
//  Created by hetao on 14-8-29.
//  Copyright (c) 2014年 mac. All rights reserved.
//

/*
    好友请求实体
 */
#import "OtherUsers.h"
typedef enum{
    RNOType= -1,//拒绝
    RYESType= 1,//同意
    RWFType= 0//等待操作
} RequestTyep;
@interface FriendRequest : OtherUsers
@property(nonatomic,assign)RequestTyep requestType;
@property (nonatomic,assign)BOOL isSee;//是否查看
@property (nonatomic,strong)NSDate * requesetDate;//请求时间
@property (nonatomic,strong)NSString *rpId;

///添加好友验证记录
+ (void)insertData:(FriendRequest *)fr;

///查询所有好友请求
+ (NSMutableArray *)selectFriend;

///查询为查看好友请求的记录数
+ (int)selectRN;

///修改好友请求数据
+ (void)upData:(FriendRequest *)fr;

///清空所有未查看消息记录
+ (void)dorpRN;

///清空所有好友请求
+ (void)dorpRNList;

///从网络上获取好友请求数据
+(void)HttpFriendRequestcomYes:(void (^)(NSMutableArray * arr,NSString *rptime))comyes;

@end
